import request from '@/utils/request'

export function listPartType(query) {
  return request({
    url: '/system/part/type/list',
    method: 'get',
    params: query
  })
}

export function getPartType(code) {
  return request({
    url: '/system/part/type/' + code,
    method: 'get'
  })
}

export function addPartType(data) {
  return request({
    url: '/system/part/type',
    method: 'post',
    data: data
  })
}

export function updatePartType(data) {
  return request({
    url: '/system/part/type',
    method: 'put',
    data: data
  })
}

export function delPartType(codes) {
  return request({
    url: '/system/part/type/' + codes,
    method: 'delete'
  })
}

